//
//  NRWGuidePageVC.m
//  NRWMall
//
//  Created by 张记 on 2018/6/19.
//  Copyright © 2018年 com.anpxd. All rights reserved.
//

#import "NRWGuidePageVC.h"
#import "DHGuidePageHUD.h"

@interface NRWGuidePageVC ()

@end

@implementation NRWGuidePageVC

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.navigationView.hidden = YES;
    [self setStaticGuidePage];
    
}
- (void)setStaticGuidePage {
    NSArray *imageNameArray = @[@"guidepage1",@"guidepage2",@"guidepage3"];
    DHGuidePageHUD *guidePage = [[DHGuidePageHUD alloc] dh_initWithFrame:self.view.frame imageNameArray:imageNameArray buttonIsHidden:NO];
    guidePage.slideInto = YES;
    [self.view addSubview:guidePage];
    
    kSelfWeak;
    guidePage.finishBlock = ^{
        
        !weakSelf.completeBlock ?: weakSelf.completeBlock();
        
    };
    
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
